﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Prisa.Entities;

namespace Prisa.DataAccess
{
    public interface IDetalleCreditoDAO
    {
        DETALLE_CREDITO GetDetalleCreditoByCreditoIdAndProductoId(int IdDetalle,  int idCredito, int idProd);
        List<DETALLE_CREDITO> GetFromDetalleCreditoByProductoDescAndCreditoId(string descripcion, int idCredito);

        bool GetAllDetallesCredByCreditoId(int idCredito);

        void UpdateDetalleCreditoByCreditoIdAndDetalleId(int CreditoId, int idDetallCredito);

        void PasarDetalleCreditoToVentaByIdAndCreditoId(int idDetallCredito, int CreditoId);

        void RemoveDetalleCreditoByAndCreditoId(int Id, int IdCredito);

    }
}
